package com.atguigu.yygh.sta.controller;

import com.atguigu.yygh.client.OrdersFeignClient;
import com.atguigu.yygh.result.R;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.atguigu.yygh.vo.order.OrderCountVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2025/4/3 23:38
 */
@Api(tags = "统计管理接口")
@RestController
@RequestMapping("/admin/statistics")
public class StatisticsController {
    @Autowired
    private OrdersFeignClient ordersFeignClient;
    @GetMapping("/getCountMap")
    public R getCountMap(OrderCountQueryVo orderCountQueryVo){
     return  ordersFeignClient.getStatisticalByDate(orderCountQueryVo);
    }
}
